<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <link rel="stylesheet" href="/static/layui/css/layui.css" type="text/css">
    <script src="/static/js/jquery.js"></script>
    <script src="/static/layui/layui.js" type="text/javascript"></script>
</head>
<body>

<div class="layui-card">
    <div class="layui-card-header">意见信息</div>
    <div class="layui-card-body">
        <form class="layui-form" action="/opinions/edit" method="post">
            <div class="layui-form-item">
                <label class="layui-form-label">意见标题</label>
                <div class="layui-input-block">
                    <input type="hidden" name="id" value="{{ opinions.id }}">
                    <input type="text" name="opinions1" required value="{{ opinions.opinions1 }}"  lay-verify="required" placeholder="" autocomplete="off" class="layui-input">
                </div>
            </div>
            <div class="layui-form-item">
                <label class="layui-form-label">发表人</label>
                <div class="layui-input-block">
                    <input type="hidden" name="id" value="{{ opinions.id }}">
                    <input type="text" name="opinions2" required value="{{ opinions.opinions2 }}"  lay-verify="required" placeholder="" autocomplete="off" class="layui-input">
                </div>
            </div>
            <div class="layui-form-item">
                <label class="layui-form-label">意见内容</label>
                <div class="layui-input-block">
                    <input type="text" name="opinions3" required value="{{ opinions.opinions3 }}"  lay-verify="required" placeholder="" autocomplete="off" class="layui-input">
                </div>
            </div>

            <div class="layui-form-item">
                <div class="layui-input-block">
                    {% if update %}
                        <button class="layui-btn" lay-submit lay-filter="dataForm">立即提交</button>
                        <button type="reset" class="layui-btn layui-btn-primary">重置</button>
                    {% endif %}

                </div>
            </div>
        </form>
    </div>
</div>

<script>
    layui.use(['form', 'upload', 'layer'], function(){
        var form = layui.form;
        var upload = layui.upload;
        var layer = layui.layer;

    });

</script>

</body>
</html>